package com.blb.community_admin.controller;

import com.blb.community_admin.entity.SysArea;
import com.blb.community_admin.service.SysAreaService;
import com.blb.community_admin.util.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api
@RestController
public class SysAreaController {
    @Autowired
    private SysAreaService sysAreaService;

    @ApiOperation("查询所有")
    @GetMapping("/sysArea")
    public ResponseResult<List<SysArea>> selectAll(){
        return ResponseResult.ok(sysAreaService.list(null));
    }
}
